import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: const Text("Transform Widget Demo"),
      ),
      body: TransformWidget(),
    ),
  ));
}

class TransformWidget extends StatelessWidget {
  const TransformWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: DecoratedBox(
        decoration: const BoxDecoration(color: Colors.red),
        child: Transform.translate(
          offset: const Offset(-20.0, -5.0),
          child: const Text("Hello World"),
        ),
      ),
    );
  }
}
